package com.itheima.pojo;

import java.util.List;

public class Role {
    private String roleId;
    private String roleName;
    private String roleDetail;


    private List<User> users;


    public Role() {
    }

    public Role(String roleId, String roleName, String roleDetail) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.roleDetail = roleDetail;
    }

    public Role(String roleId, String roleName, String roleDetail, List<User> user) {
        this.roleId = roleId;
        this.roleName = roleName;
        this.roleDetail = roleDetail;
        this.users = user;
    }

    /**
     * 获取
     * @return roleId
     */
    public String getRoleId() {
        return roleId;
    }

    /**
     * 设置
     * @param roleId
     */
    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    /**
     * 获取
     * @return roleName
     */
    public String getRoleName() {
        return roleName;
    }

    /**
     * 设置
     * @param roleName
     */
    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    /**
     * 获取
     * @return roleDetail
     */
    public String getRoleDetail() {
        return roleDetail;
    }

    /**
     * 设置
     * @param roleDetail
     */
    public void setRoleDetail(String roleDetail) {
        this.roleDetail = roleDetail;
    }


    /**
     * 获取
     * @return user
     */
    public List<User> getUser() {
        return users;
    }

    /**
     * 设置
     * @param user
     */
    public void setUser(List<User> user) {
        this.users = user;
    }

    public String toString() {
        return "Role{roleId = " + roleId + ", roleName = " + roleName + ", roleDetail = " + roleDetail + ", user = " + users + "}";
    }
}
